package cn.edu.scau.cmi.linzhiyang.abstractfactory.factory;

import cn.edu.scau.cmi.linzhiyang.abstractfactory.domainAbstractClass.InsuranceType;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String brand) {
		switch (brand) {
		case "中国人寿保险":
			return new PICC_Factory();
		case "平安保险":
			return new PingAn_Factory();
		}
		return null;

	}
	
	public abstract InsuranceType getInsuranceType(String type);
}
